package com.iflytek.cosmo.ocr.common.enums;

public enum FeedbackDeleteEnum {
    /** 初始状态, 未选择这个条件 */
    DELETE_NORMAL(0, "初始状态未选择"),

    /** 未删除 */
    DELETE_NO(1, "未删除"),

    /** 已删除 */
    DELETE_YES(2, "已删除")

    ;

    private Integer code;
    private String desc;

    FeedbackDeleteEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static FeedbackDeleteEnum getByCode(Integer code) {
        if (code == null) {
            return null;
        }

        for (FeedbackDeleteEnum anEnum : values()) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }

        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
